<?php

/**

 * 代小程序实现功能

 */

namespace app\common\helper\open;

use app\common\helper\open\OpenPlatformBaseHelper;

class OpenPlatformMiniappCodeHelper extends OpenPlatformBaseHelper{

    

    

    public function  _init(){

        $this->setTicket();

    }

    

    

    public function getDrafts(){

        return $this->app->code_template->getDrafts();

    }

    

    public function createFromDraft($id){

        return $this->app->code_template->createFromDraft($id);

    }

    public function getTemplateList(){

         return $this->app->code_template->list();

    }

}

